package com.wlyuan.open.scanner.feign;

import com.wlyuan.open.dto.OpenSearchSourceDataDTO;
import com.wlyuan.open.scanner.feign.fallover.OpenPlatformFeignFallOverFactory;
import com.wlyuan.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author lijing
 * @description
 */
@FeignClient(name = "pc-open-platform-web", fallbackFactory = OpenPlatformFeignFallOverFactory.class)
public interface OpenPlatformFeignInvoker {

    @PostMapping("/sync/fail")
    Result<List<String>> fail(@RequestBody OpenSearchSourceDataDTO search);

}
